home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / samples / midpnt / registry.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-22  |  798 b   |  32 lines

  1. /*      Registry.h
  2.  *
  3.  * Registry handling class
  4.  *
  5.  * Copyright 1996 Petteri Kangaslampi
  6. */
  7.  
  8. #ifndef __Registry_h
  9. #define __Registry_h
  10.  
  11.  
  12. class Registry
  13. {
  14.     HKEY        key;
  15. public:
  16.     Registry();
  17.     ~Registry();
  18.     int KeyExists(const char *name);
  19.     void CreateKey(const char *name);
  20.     void OpenKey(const char *name);
  21.     void Value(const char *name, void *data, DWORD *dataLength,
  22.         DWORD bufferLength, DWORD *dataType);
  23.     void ValueString(const char *name, const char *defaultData, char *dest,
  24.         int bufferLength);
  25.     void WriteString(const char *name, const char *string);
  26.     DWORD ValueDWORD(const char *name, DWORD defaultData);
  27.     void WriteDWORD(const char *name, const DWORD data);
  28.     int ValueExists(const char *name);
  29. };
  30.  
  31.  
  32. #endif